package com.woniuxy.pojo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;
import java.util.List;

public class GuangChang {
    @NotEmpty(message = "班级名称不能为空")
    String jihao;//名称
//    @Valid
    @NotEmpty(message = "嵌套对象数据不能为空")
    Person3 singger;


    public GuangChang() {
    }

    public String getJihao() {
        return jihao;
    }

    public void setJihao(String jihao) {
        this.jihao = jihao;
    }

    public Person3 getSingger() {
        return singger;
    }

    public void setSingger(Person3 singger) {
        this.singger = singger;
    }


    @Override
    public String toString() {
        return "GuangChang{" +
                "jihao='" + jihao + '\'' +
                ", singger=" + singger +
                '}';
    }
}
